package com.zbkj.common.request;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ContactsSaveRequest对象", description = "通讯录保存请求对象")
public class ContactsSaveRequest {
	
	private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通讯录id,新增时不传，编辑时必传")
    private Integer id;

    @ApiModelProperty(value = "分组名称")
    @NotNull(message = "分组名称不能为空")
    private String name;

    @ApiModelProperty(value = "上一级通讯录id，如果新建顶级分组，则传0")
    private Integer parent_id;

    @ApiModelProperty(value = "通讯录类型")
    @NotNull(message = "通讯录类型不能为空")
    @Range(min = 1, max = 2, message = "通讯录类型 1=分组文件夹，2=AI工具")
    private Integer type;
    
    @ApiModelProperty(value = "AI工具id")
    private Integer agent_id;
}
